Reworked the turn ending mechanism a bit.

I need a turn ending delegate for my future code.