Rectangle moves and overlaps triangle