added paddles logic