Restrict the movement of the ball till the boundary