Fixed bug

Bug allowed mate lines to return incorrectly