Lines classic!

The game starts with a 99 board with three balls chosen out of seven different colours. The player can move one ball per turn, and the player may only move a ball to a particular place if there is a path (linked set of vertical and horizontal empty cells) between the current position of the ball and the desired destination. If not, three new balls are added, and the game continues until the board is full.