maze: removed rnd() - using standard rand() and srand() instead.