Adverse possession is more complicated and harder to actually pull off than has been suggested in this thread. Generally it's not a route I would recommend over purchase after foreclosure.