Change freeze method, as previously the player could still jump and fly