Old Java program written in an Artificial Intelligence class at uni