Fixed the issue with placement of ingot into the existing pile of other
metal kind. Small refactoring is applied.