add solution judge and a little bugs fix