solve 'does not allow a book to be checked out twice in a row' problem