Oh, now I can understand, thank you!
Engines that use the Java language as a base are much more user-friendly compared to C#, for example. It seems convenient to use them in the context of learning and executing, and at least it worked, because the game is playable, and you can have fun.
Engines like Godot and Unity are much more competent for video games in general, but they are quite complex at times (especially when getting used to them at the beginning). I recommend taking a look when you feel more comfortable and want to do something more robust, they are really great when you understand them better, even so it's good to consider the engine that is most comfortable for you.