moved spawn logic, fix local_data vars

typos
syntax errors
removed a try-except
spawn > turn 9 moved to "normal" logic, except for the turns before
spawn and the turn before that one (turns X0 and X9)
fixed enemy and friend detection so it actually works...