I added in your code to GameState.js

probably needs some work...