change flipNumber algorithm to correct ones based on tim & ole discussion