refactors board and main so that board takes in a list of behavior
scripts.