Added code to pass valid board data to the pieces