Implemented physics
Added platforms, refactored code