added clicking maze functionality