The AI!
IS SIMPLE! :)
You can do some maths to check where the Ball is. If its within 64 pixels of the second bat make the bat keep adding or taking 5. If you have a direction variable on the ball then you need to check the direction, give it some thought. I'm a games student at college so im willing to help. I'm writing my own version of this in mIRC myself!