Rearrange code to abstract game logic from govent package.