- is MAX_STEPS a reserved keyword ? a lament

If you’re on linux or mac you could try running with address sanitizer. It may catch out of bounds memory access issues.