3-in-row lines game implementation