implemented physics, overwrote controls and cleaned code