assigned each button with _x and _y value
fixed incorrect _x and _y assignment