sorry i found it, no worries.

"if(oy > oymin && x < xdmin) x=xdmin;"

i will ask when need again.

quite a challenging task to do remixing alone. ;D