main and scoreboard