convert to state based game