Update NFA.js

Updated the step function to account for multiple end states and current states.