fixed many things and slightly changed how the grid works