Update input-processor.js

Fixed course depth issue