Fixed generateTile method in puzzle and added more the minimax algorithm