specified some of the elif loops to make sure the programme is looking at the right type of surface