Added package private setters for testing. And added end game.