@jp21, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.
Nice attempt at posting your code using code tags; not sure how you managed that. The easiest way to post correctly formatted code using code tags is
- In the IDE, tools -> autoformat
- in the IDE, edit -> copy for forum
- paste here in a reply