Every x seconds is counted from the start of the game..
In this case the start of the game is the start of this layout..
the wait two seconds in the "on start of layout" ends exactly at 2 seconds, which is the same tick that gamestate is set to count and that tick the every x seconds is also true..
Simple..