Function getGridPoint

Rounds a point to the nearest grid point based on gridSize.