introduce enum for PieceType and remove classes for different pieces