Initalize curPosition and curSpeed variables