Excellent Puzzle game.
Though real programming is a lot more complicated (well depending on what language you're writing in), the basics of using functions and the mechanics used in the game are very well done. I hope to see a sequel to this, a more advanced one or one with more puzzles. Excellent work.