Fix canMove() method