This is a basic physics block. It doesn't detect walls yet, however. It does work very well for slopes, however.
I got the idea from Click_To_Display, but the coding is entirely mine. Also, the red and blue portals are not part of the Physics, they are just there so that the ball does not run into the edges.