sorted out the on turn event