Adds basic functionality and returns a winner at the end of the game