Finished winning condition code

Only thing left to do is finish idConversion() funciton and
troubleshoot.