Refactor isEndGame function

Remove dependency on fast clz/ctz instructions in Capture state, now
it even faster with simple shifts.