Added a isDraw method. TODO: write unit test for it.