Add maze generating logic (no CImg functionality yet)