Added code to deal with setting up the board. Not finished.
Modified logic control check method.
Update ready for merging before we create Peter's branch