PieceType issue when trying to know if type isSomething fixed.
Improved PieceComponent.