Refactor board and graphics to take settings