some syntax fixes in the piece.cpp file.