Generate and resolves mazes with AI algorithms