Changed the way the grid draws and scaling