Check flags good, new error appeared...

I get an out of bounds error when we do the following stack trace:
BestMove -> IsCheck -> IsValid -> MoveAPawn
the values I get are (1, -1) from the program trying to pull out a value
from the board...