Rudimentary physics

Added a rudimentary physics system.