add scoreboard and AI