Made Rendering of 2D game smoother by putting logic of game in a timer. Every 20 milliseconds refresh of screen.
Put gameMain in timer.

Move ball. Bounces of border.
Show border of game.