Step-by-Step Reasoning to Solve Grid Puzzles: Where do LLMs Falter?