Game of life kata done in Scala