Added my attempt at checking for checkmate. It currently does not work and I can't figure it out, maybe you guys can take a look at my changes.