Made it OO, added gravity, jumping and collision detection.