Hi @Ryan_Zhong, welcome to the CodeCombat discourse!
Please could you read this topic to learn how to format your code on Discourse:
It really helps me read your code, especially because your problem could be to do with indentation, (the gaps between lines).
Thanks
Danny