Reverse boolean clause in main.cpp::detectMode

The function main.cpp::detectMode operates by taking a single argument
(a string), and comparing it to the list of possible modes to arrive at
an index.

This comparison used a basic iterative for-loop.  Unfortunately, the boolean
check in the forloop was backwards (it used == instead of !=)