Determining if a board state is in check or not works perfectly now!

Took a bit though.