Refactor to create a game function constructor.
Start to implement check for win functions.