func (ui *UIHandler) drawOverlay() {
	w, h := ui.screen.Size()
	st := ui.theme.GetCurrent().GetOverlayStyle()
	for i := 2; i < h; i += 4 {
		ui.rect(w/2, w/2+1, i, i+3, ' ', st)
	}
}
Draw tghe overlay aka the dashed line. Doesn't update the terminal.
The score counter may also be added here in the future.
package main
import (
	"strconv"
	"github.com/gdamore/tcell"
)
func (g *Game) updateTerminal() {
	g.ui.Paint()
}
func (g *Game) drawGUI() {
	if g.started {
		g.PerformGameTick()
	} else {
		g.PerformStartMenuTick()
	}
}
func (g *Game) drawGameTick() {
	g.ui.Reset()
	if g.ui.theme.IsBgShown() {
		g.ui.drawBackground()
	}
	g.ui.drawOverlay()
	g.ui.drawScores(*g.players)
	g.ui.drawPlatforms(*g.players)
	g.ui.drawBall()
	if g.state == gameStatePaused {
		g.drawLegend()
	}
}
func (g *Game) drawStartGameMenu() {
	w, h := g.ui.screen.Size()
	g.ui.screen.Clear()
	if g.ui.theme.IsBgShown() {
		g.ui.drawBackground()
	}
	g.ui.drawBall()
	text := "PONG"
	st := g.ui.theme.GetCurrent().GetOverlayStyle()
	g.ui.drawLetters(w/2, h/5*2, startMenuLttrGap, text, st)
	g.drawLegend()
}
func (g *Game) drawLegend() {
	g.ui.drawLegend(g.state, g.aiActive)
}
func (ui *UIHandler) drawBackground() {
	w, h := ui.screen.Size()
	st := ui.theme.GetCurrent().GetBackgroundStyle()
	ui.rect(0, w, 0, h, ' ', st)
}