Fix indexing bug in leaveGame()