moved check for win to MainField