Adding break and continue functionality in while and do..while loops