Fixed some bugs and got movement and ending the game working