Your loop goes from 0 to 14, so your bgt instruction should be: bgt $t0,14,exit I think.
bgt $t0,14,exit
.