Modified for loop

Added setcost of 20 due to the use of a for loop. Also changed ipairs to a normal for loop.