fixed game loop a bit