Fixed a bug that made the challenges one day shorter than they should be. Also added win condition for challenges that end.