Update main.lua

Changed 
node:getX(), node.getY()
to
node.x, node.y 
to mirror functionality from stable release (1.8.1).