Refactoring code to accommodate when event.
All win conditions tested along with draw
test when a game leaves