Made positive edge detection

Positive edge detection inside the grid for the buttons