extend _getDirection() to check for left/right moves, added _getMoveByPiece() tests
addded _canMoveByMove() tests
formatting