updated board and cost calculation