made linear obstacle generation work