added clearboardview 
for loops