fixed a bug when board is full