[+] Grid logic added