change get_coord to accept second parameter a coordinate list to search for