Fixed quit game noaction

Couldn't fall asleep before fixing this bug. Now it is possible to end
game at any point of time and start again.