Prevents player undesired player movement.