added a endPhase button and functionality
Im having a little with github, it says im in REBASE?