b to be p2 your if player 2 move by wasd space to be p1 if your player 1 move by arow keys if one of the players is taken then take the other one. if both are taken then just don't play on this link : scratch.mit.edu/projects/831193755/