Added type signatures to newFreeGameState and main.  Moved newFreeGameState below main.  changed _gameState and _mouseDownPrev to getGameState and getMouseDownPrev.