Added proper support for game states, i.e. separate for each player.