Image logic in 4-in a row pattern