gave control over game stage progression to the server side by making it revolve around socket.io events