Check if something is in the way of the flag before picking it up (fixes #227)