I believe it takes the shortest non-blocked route.
Correct...sort of. If the shortest path is blocked, their position cannot be improved, so they simply hold in position until the path opens up. Anytime there are two equal moves available (ie: 2 equidistant shortest routes) the player may choose the path to their advantage.
Let us know if you have any other questions!