got game loop working