base refactoring of common graphics
introduced the GamePainter
extracted , widthHeightRatio, border from CommonsGraphics
minor refactoring
removed max
introduces StageParameters
removed unnecessary asInstanceOf
removed unnecessary parameters