simplify winningLines definition
remove dead 'same' function
Add a 'free' function