Refactored game mode switch
Enacted pause mode and replay