Refactored the GR(1) game solving a bit to accommodate transition costs.