A pet game in Java.