changed functions to check smooth movements in BD engine