Added getValueOf() in order to transform the static enum PieceType into integer values :)