* Add null checks in canMoveTo