Added a win condition that worked at first and then stopped working. Also added firebase integration to the page but it is currently not adding anything to the database