Adding for loop and if else
adding levels