fix jumping mechanic and enhance foreground mechanic