if(playerenters){
canbepushed;
}
if(x=buttonx&&y=buttony){
//make sure to replace buttonx/y with the x and y the button is on
set puzzlecomplete;
x = startingx;
y = startingy;
//make sure startingx/y are the co-ordinates that the block
//started on
}