Game logic is hard.