Added some plain vanilla logic to check for wins