Fixed up ore placement code (should be complete)