Major updates and cleanups, most significantly added support for having the AI player as the starting player.