Made the game loop skip if player = null.