Implement collision detection grid