Added checking if player is set