Hi @liam_cutts and welcome to the forum! 
Can you send us your code formated how it is described here and tell us what is wrong with the code?
Hi @liam_cutts and welcome to the forum! 
Can you send us your code formated how it is described here and tell us what is wrong with the code?