zoom method

void zoom(
  1. int newSize
)

Zooms in or out by modifying gridSize.

Implementation

void zoom(int newSize) {
	gridSize = newSize;
	recenterRover();
}