resize board area based on minimum of both width and height