Fixed bug in canMove method in Player and Block.