iPad Touch control for 2 players Pong Game problem

Hi, I have been pouring over the forum posts and can't find a decent answer. I am making an iPad Pong game for 2 players. So I have two actors, player1_paddle and player2_paddle, both to slide on their X position. The logical way of doing this will be:-
Actor Player1_paddle Rule -- When touch is press, "constraint self.positionX" to "game.Touches.Touch 1.X"
Actor Player2_paddle Rule -- When touch is press, "constraint self.positionX" to "game.Touches.Touch 2.x"
Now, this works fine if Actor Player1_paddle is touched first. The problem arise when Actor Player2_paddle is touched first thus registering game.Touches.Touch 1.x. This is follow by Actor Player1_paddle being touched 2nd thus registering game.Touches.Touch 2.x. As a result, the whole control system is thrown into chaos. You can try a simple setup with this.
I seen a lot of forum asking people to check out Codemonkey's Joypad demo. However, after downloading and installing Gamesalad plugin for Safari a dozen time, it never work and I am not able to check out the demo. Looking at another forum, this installation error was highlighted 1 year ago.
I am at wits end here. Anybody can kindly guide me?
Actor Player1_paddle Rule -- When touch is press, "constraint self.positionX" to "game.Touches.Touch 1.X"
Actor Player2_paddle Rule -- When touch is press, "constraint self.positionX" to "game.Touches.Touch 2.x"
Now, this works fine if Actor Player1_paddle is touched first. The problem arise when Actor Player2_paddle is touched first thus registering game.Touches.Touch 1.x. This is follow by Actor Player1_paddle being touched 2nd thus registering game.Touches.Touch 2.x. As a result, the whole control system is thrown into chaos. You can try a simple setup with this.
I seen a lot of forum asking people to check out Codemonkey's Joypad demo. However, after downloading and installing Gamesalad plugin for Safari a dozen time, it never work and I am not able to check out the demo. Looking at another forum, this installation error was highlighted 1 year ago.
I am at wits end here. Anybody can kindly guide me?