Updated game logic for winning

Went through and updated the connection code to work properly