added random maze functionality