The player is at row 6, column 1, and the goal is at row 1, column 1. There are 9 holes. They are at: row 1, column 5; row 2, column 3; row 3, column 1; row 3, column 4; row 4, column 4; row 5, column 1; row 5, column 2; row 5, column 6; row 6, column 5. - Moving Right (R). The player is now at row 6, column 2. This grid is safe. - Moving Up (U). The player is now at row 5, column 2. This grid contains a hole! Revert this step - the player is still at row 6, column 2. - Replan: Moving Right (R). The player is now at row 6, column 3. This grid is safe. - Moving Up (U). The player is now at row 5, column 3. This grid is safe. - Moving Up (U). The player is now at row 4, column 3. This grid is safe. - Moving Up (U). The player is now at row 3, column 3. This grid is safe. - Moving Up (U). The player is now at row 2, column 3. This grid contains a hole! Revert this step - the player is still at row 3, column 3. - Replan: Moving Left (L). The player is now at row 3, column 2. This grid is safe. - Moving Up (U). The player is now at row 2, column 2. This grid is safe. - Moving Up (U). The player is now at row 1, column 2. This grid is safe. - Moving Left (L). The player is now at row 1, column 1. This grid is the goal, so we stop here. 1. Right to row 6, column 2 (safe) 2. Right to row 6, column 3 (safe) 3. Up to row 5, column 3 (safe) 4. Up to row 4, column 3 (safe) 5. Up to row 3, column 3 (safe) 6. Left to row 3, column 2 (safe) 7. Up to row 2, column 2 (safe) 8. Up to row 1, column 2 (safe) 9. Left to row 1, column 1 (goal) Action plan: R,R,U,U,U,L,U,U,L