used canMove Method