Add resize method to the canvas.
State manager listens to canvas resize events and send to all states.
Unit tests for state handle input.