added rudimentary controls for ai playing either side automatically