Added x,y distance calculations for the buttons