A java based nim game with AI