Added javascript shell file for functions to change the view of the game board per state
added switch handler for state