Added startGame and endGame events to the server and index