Fix bug where the phase wheel got out of sync

The phase wheel counts phases within another unit and not mtg phases. It is important to map between those. I added this mapping to keep the code simple and correct hopefully this time. (Please test the wheel before merging because it is getting late (about 2 am) and I am not sure if I have found all possible regressions)