Index.html works with winning conditions