implemented obstacle colours depending on how many obstacles exist