added function to check if board is full