Primitive AI implementation written primarily in Java