Added win checking

+ win checking
+ swapping tiles
+ checking if the tile is placed or not