The end turn has been re factored.

As requested.