Get game loop working