The goose game in java