control drawing, and states of game