Pong - problems with boundary check

not sure why but that approach doesnt work in my sketch.
:confused: