clean up graphics.cpp
working on Piece.cpp