Fixed AI for GWT.
Fixed GWT problem when switching players.