Winding path

It's a maze, but the bad paths have been blocked off. Mark the correct path.

Input

|||||x|||||||
|   |   |   |
| | ||| | | |
| | | | | | |
| | | | | | |
| |   |   | |
||||||||||| |
|       |   |
| ||||| | |||
| |   |   | |
| ||||||||| |
|       |   |
|||||||x|||||

Output

|||||x|||||||
|   |xxx|xxx|
| | |||x|x|x|
| | | |x|x|x|
| | | |x|x|x|
| |   |xxx|x|
|||||||||||x|
|xxxxxxx|xxx|
|x|||||x|x|||
|x|   |xxx| |
|x||||||||| |
|xxxxxxx|   |
|||||||x|||||