cleaned up some code and allowed board to be made from string array