code for cs4300 artificial intelligence