Fixed the bug that prevented the AI player from taking multiple turns in a row.