When you have no more cards in your draw pile then your discard pile is shuffled and becomes your draw pile.If there are no units on one side and you have no options to play a unit onto that side, then it's game over.