Lots of bug fixes.

Cannt replicate turn at same time bug.