fixed problems with puzzle game