change the wonGame() function
add last tests