fixed the time limit issue for word search