popular simple game, realized in Java