code day_4.5: implement a simply ai