An engine/game in Java