add search
and fix nasty bug in uci.c (char fen unitialized causing UB in strcpy)