Looking for glitches

I've been looking for bugs in my code to make sure everything worked well.
I accidentally  left the game running for a couple of minutes and when I came back it looked like this:
I'm not sure
Apparently when the bullets get too far they loop back! :)