changed gridSize and restLength to make rendering faster