Shortened the win logic and the firebase stuff should be fixed as well.