added draw game function check