took io object out of ai player and separated command line io functions