You have to jump exactly into the doorway, if you jump into the black tiles your position will be reset, also there is no need to do the caves in order :)