Moving brick dimension calculations into a function with properties belonging
to the game object so other methods can use them
Using this.rowCount instead of this.bricks.length
Adding method to detect whether ball is near bricks
Refactoring updateBricks method, moved logic into methods