add flag to see who will player next.
fix some syntax error(i need to do it before commit.)