fixed the initialization of the King' position
removed unused variable