Cleaned up canMove() functions.