fixed obstacle height formula
merged updated obstacle generation formula