Finally fixed my bug!!! It’s been pestering me for days, and when I finally work out what’s wrong the solution is to simply replace a ! with a =. Sometimes I hate coding a lot.
On the bright side though, fixed! I can finally move on to making things awesome instead of just making things work.