Click on a square to move you're king (you play as white). This is pretty much mini chess rook AI except with kings, not rooks. Mini chess rook AI: https://scratch.mit.edu/projects/560486666/
I was inspired by this project: https://scratch.mit.edu/projects/374946430/