Four in a row with Scala