Fixed a few resource placement bugs

Need to limit placement by how many resources are left