sync end turn events normally

i hesitated to sync end turn events before, because from the server side
of view every action need a clear defined side assiciated to it, from
wich it accepts [require_new_random].
but now i think the server just associates side 1, that means the new
side after the side turn to the action.

this patch also contains some oos error checks,