More Functionalities Added

Added Winning and Losing conditions, Transitions between the two and
the ability to restart the game from both winning and losing states.