Added thread to handle game logic. Game now works and moves a lot smoother. Responding to keyboard movements is also more accurate