A simple guessing game written in Java