Please help summit's gate!

Could you post your code formatted. Instructions: How to Post Your Code With Radiant, Harmonious Formatting. And do you have an error? Or is it just not working to complete the level.
When you post your code could you give as much info. as possible so I don’t have to spend quite a lot of time finding out what you already know.