Cleaned up code and added AI player interfaces.