fixing bug with clicking on board