private void HandleCollision(Cell collidedCell) { switch (collidedCell.CellType) { case CellType.Obstacle: case CellType.Snake: EndGame(); break; case CellType.Scorable: AwardScore(); GrowSnake(); grid.ClearGridCell(collidedCell); break; default: break; } }