When the credits button is clicked it now sets the state to the credits state