fixed a bug where the controller would assign the wrong id to the players