Fixed bug causing check to not be recognised.
Checkmate appears to be broken. Working on that now.