private void Paint() { SaveLoad saveLoad = new SaveLoad(); List <string> getFarmInfo = saveLoad.LoadThis(farmWorkingWith.FarmName, farmerWorkingWith); Calculations algorithm = new Calculations(); List <string> theCoOrdinate = algorithm.createTheFarm(getFarmInfo); //algorithm.HandleNewAnimals(getFarmInfo); int startX; int startY; int cageSize; int angle = 0; myPen.Width = 1; g = DisplayPanel.CreateGraphics(); foreach (string item in theCoOrdinate) { string[] lines = item.Split(','); startX = int.Parse(lines[1]); startY = int.Parse(lines[2]); cageSize = int.Parse(lines[3]); if (lines[4] == "Prey") { myPen.Color = Color.Blue; } if (lines[4] == "Predator") { myPen.Color = Color.Red; } if (lines[4] == "Other") { myPen.Color = Color.Green; } DrawLine(startX, startY, cageSize, angle); } //DrawLine(950, 950, 50, angle); }