Fixed some bugs
Finalized EndGameState
Added variable for EndGameState in settings and added the state in MainView