Made board dimensions dynamic