I was making a chess engine and I have a list of moves.
std::list moves;
I also have a function that checks if the king is under