Some more chess logic