offloaded painting work to Piece class