Fixed the logic error which caused a white peg not to be returned in a very rare and specific case.