refactored GamePiece class and draw-game-pieces code