Worked on game loop and inputs