reworked the grid algorithym, it now draws based on input size :)