Change the proprty speed into speedX and speedY