renamed game into state to reflect its meaning