trying to fix the wave move bug but not working