added judge loop;removed junk files