corrected validateAlgorithm function. previously returned 'lingo' every time