To know that, i have to read your capx.
But if i might make a wild guess. There is a player in the layout. You did not destroy it in a 'on start of layout'.
And you spawn a new player on some place during run time. So actualy, there are two players in the game.
Assuming there is only 1 player in the game, your code does not pick a certain player. So all actions adress both players. If you move the player, both get moved. So you dont actual see that there are two players.