Move cellWidth to canvas as it's not related to the snake object