Implemented the ability for checking check mates

Now the board should end game when a check mate occurs