Improving the havePiece/hasPiece API
Fixed #34