Preheat the oven to 375°F.
Heat the vegetable oil in a large skillet. Add the onion, garlic and chili pepper and cook for 2-3 minutes, stirring frequently. Mix in the tomatoes, beans, chili powder, cumin and salt. Remove from the heat and set aside.
In a bowl, combine the ricotta cheese, egg and ¾ cup of the Monterrey Jack or cheddar cheese.
Lightly grease an 8”x8” casserole dish or cake pan.
Cut one tortilla into quarters. Place 2 tortillas at the bottom of the pan (they will overlap) and use two of the tortilla quarters in the corners that are not covered. Spoon about ⅔ of the vegetable mixture on top. Cover with the ricotta cheese mixture, spreading it over the vegetables. Top with the remaining tortillas, then the remaining vegetable mixture and finally with the remaining shredded cheese.
Bake for about 35 minutes or until hot and bubbly.