Smelly code incoming, trying to get the game to work again.