I am trying to remove rows in an array that have
for i in range (5680):
if games[i] == 0 and games[i] == 0:
list out of range
Trying to change an object that you are iterating through is almost always a bad idea. In your case after first
pop() you have list that is already smaller than 5680. So when you get to 5679 you are already out of range.
games = [g for g in games if g != 0 or g != 0]
games = list(filter(lambda g: g != 0 or g !=0, games))