added a working clearBoard and clearCell function