Solved Word Search in C++