fixed bug with the match draw