Game of life in swift, osx, xcode 6.1