added a draw condition