implemented procedure for running out of dyadminoes in common pile