Added resource requirements for buildings

-spawn function is now only executed when deleted==false