Cutoff Test method finished

Cutoff test method finished, I also added two other method to help
Cutoff test method. isCheckmateHelper may be useful for anyone.
Everything has been deeply tested, so the methods should not have any
bugs nor they should take too long to process.