fix all basic jigsaw

fixed all problems with edges of pieces. pieces will now connect, you can rotate around a piece by double clicking, connected pieces will rotate with randomized the location of pieces.