implemented grid as a visual representation