modifed winner method
So it turns out my entire program was breaking due to inconsistant capitalization