consolidated code.
fixed turn cycling for single player games.
formatting