Made all gates touch the border, got rid of red line