everything but ending the game working