...
Refactor drawState to use Graphics.