I really like the intergalactic background you had. I took a look at your player object, and you just need to move the player index inside the if statements (that fixed the switching, at least on my end).
thanks!!! really appreciate it