Added createChains in Board.py, used nested array flattening