How do i animate my Rubics Cube?

How can i have the pieces have collision on them that forces the other pieces to move by them selves?

I have all the pieces together and i want to do a animation before i finish off by printing it.