fixed CheckWallCollision bug