Made grid scalable when x/y > 9