It's like that mind game at Cracker Barrel!

Link : http://www.flasharcade.com/game.cgi?flashpegs