Added a new AI class,fixed RandomAI.java.