Shortened code, added a check for if player is already frozen