changed piece_class.cpp