Puzzle Game in c++