the function check is a bit broad and not too descriptive.  check what? - checkWin? - a function within this object here feels a little strange.  This is the area of the code base where you're defining all your variables right.  Should the functionality all be encapsulated together?