changed isValidWord() to contains().  Refactored return statement.