src/objects/Ball.js
/**
     * Reset the ball and re-station it at the given side
     * @param side
     */
Reset the ball and re-station it at the given side
@param side
Reset the ball and re - station it at the given side @param side
initiate(side) {
        this.reset(Config.ball.position[side].x, Config.ball.position[side].y);
        this.body.data.gravityScale = 0;
        this.body.onBeginContact.addOnce(this.ballHit, this);
        this._previousX = this.x;
    }
initiate ( side ) { this . reset ( Config . ball . position [ side ] . x , Config . ball . position [ side ] . y ) ; this . body . data . gravityScale = 0 ; this . body . onBeginContact . addOnce ( this . ballHit , this ) ; this . _previousX = this . x ; }
Reset the ball and re-station it at the given side
 @param side
Reset the ball and re - station it at the given side @param side
//Ball is not moving when just created //Set gravity to 1 when the ball is hit first time