Added Error Finding to Result Function

-Removed console.logs revealing arrays for testing purposes
-Displays error and returns [Ending, -], if result function does not
return with anything else.