Im pretty sure you are allowed to use pre existing code snippets or game engine code, so i think youre in the clear.
Yep! You can even use game templates since the emphasis is the actual level design (as long as you make the level and it's not preexisting in the template!) I hope that makes sense and thanks for your question!