an AI-based game in java