Teaching Artificial Intelligence and Robotics Via Games