comp521 ai simulation