Refactoring, fixed looping in rendering, fixed elapsed tile calculation, added object type, fixed tilemap and physics.