Fixed a bug with detecting dead stones