add code for returning true if three in a row