Final version. The contestAgent only wins 2/10