in this for loop and the others like it
for (int n = 0; n < 50; n = n++)
n isn't incremented, 0 is always < 50 and you've got an infinite loop, you should ditch the "n =" bit.
in this for loop and the others like it
for (int n = 0; n < 50; n = n++)
n isn't incremented, 0 is always < 50 and you've got an infinite loop, you should ditch the "n =" bit.