started to implement the _canMove function