stops player when coliading into wall