Added more tests and winner,pieces_match functions