Fixed a big bug with updating of game phase.