change switch statement to call state functions. change squares to = as that particular square was not supported.
Merge branch 'master' of github.com:mraxilus-uwe/embedded-systems-development