Halp the ball no work like the pong games.
Your ball is only 2x2 px and has square collision polygon. It will not bounce properly. You need to change the reflection angle yourself when the ball hits any wall or paddle. Try this:
Develop games in your browser. Powerful, performant & highly capable.
thx 4 help.