Added a modal window to manage end turns