ever since he had retired to his quarters after meeting with the bandits , he had attempted to use the cup as an instrument of power for various magical experiments that had been written off as defeats in all of his books of magic .