Buying shipupgrades now costs resources

Buying shipupgrades now costs resources and the Build button now only
shows up if the players has enough resources and it has not bought it
yet