(bug) Used wrong index to determine win