added upgrade game state and fixed index.html