Moved block sizing code from Main Activity to the SurfaceView.