Physics simulation of particle in a box.