Angular / Groovy? implementation of a Clash of Clans Upgrade Manager