The problem I am having now is the movement of the ball. I have the gravity changing when it hits the bricks and paddle, but the walls appear to kill the gravity to a point where the ball will bounce just back and forth in the square it is in.
here is a link to the beginning of the game. It runs and you can see what I meand then check the code if you wish.
http://www.mutsoftware.com/games/level1.zip