Changed HTML table, improved PASS div, improved Logic for AI