implemented undo and fixed check_king_attacked. added a manual test, to move in unit test soon