Add winning moves check and clean up various files.