I get the idea, but it wont work without AT LEAST:
- A random spawning position for the ball
- A jumping or wall-climbing ability for the ball
- A random spawning position for the goal
Additionally, I would strongly recommend to add:
- Death (add deadly traps)
- A life system (start with ~3 lives)
- new random level on death (Just in case an impossible level was generated)
- a counter counting how many levels were completed before running out of lives