pong: ball now bounces within defined box