Updated the maximum index for brick.
Added clearGameObjects function to clear gameObjects array.
Added function to reset and create the brick rows.