First draft of state machie, actions and infinite canvas.