Poor first half costs Swifts against Pies in Melbourne