Fix boardIsFull function