what i see on rulebook is simple: Non-lava space > closest Free space
Non lava space part have more value then closest free space. It's simple when you are not one of thous people that want to find every exploit of game to win or just want to piss off fellow gamers.