Continue working on game loop logic