trying to make it loop for the random number generated so each tile can be looked at