Functionalized the tryGet method

I need a copy construcutor to correctly implement the planMap idea, but
I'll get that done.