Working on implementing a game loop.