Created sumAllLines array and winCheck function