added end turn keeper functionality