replace board instance variables with parameters