Update AIPlayer.java

included the algorithms detailing what should be done if the AI is adjacent to the treasure or the exit(while already carrying the treasure) and a very basic path-finding algorithm