Removed King position caching because it did not improve performance