optimal decisions in games in artificial intelligence