Implemeted the rules win