added piece.cpp