fixed the problem with the empty board