added king and tests