Make sure gridSize is a whole number

Issue: #36
Replace `while` with `whole`?