Implementation of the flash game Ball Puzzle, from crazymonkeygames, and an intelligent agent that can find the solution