parsing plateu dimensions to ints
looping a grid