The simple Java version of my game