Math doesn't work?

There is definitely no error in processing

Maybe your value is off

You could just check if brick.y== -500
then don’t check and draw it (a work around)