Adding conditional branching to keep track of when someone has three in a row