Reworked the grid concept

Signed-off-by: Kenneth Lim <kenlimmj@gmail.com>