added support for multiple game modes;
added different ai types