Simple AI Application for JAVA