Corrected code for board