allow opening puzzle by clicking either gear or plate
restructure path finding stuff a little