simple AI for existing pac man game in Java