King visual indicator added. Minor refactoring