engine for x, y, top, bottom, left, right water-grass transition done