Got rid of infiniteloop in game State