Worked on detecting mate a bit. This version beat paul!