Classic game implemented in Java