Fixed stack overflow on big boards (100x100 and higher)

p_rec_uncover is now iterative instead of recursive.