added y acceleration logic