added canMove Method